<?php 
if( (!isset($_GET['gallery'])) || (!is_numeric($_GET['gallery'])) )
{
	$gallery=0;
}else{
	$gallery = $_GET['gallery'];
}
?>

<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="js/jquery.nivo.slider.pack.js"></script>
<script type="text/javascript">
$(window).load(function() {
	$('#slider').nivoSlider({
		effect: 'fade', // Specify sets like: 'fold,fade,sliceDown'
		animSpeed: 500, // Slide transition speed
		pauseTime: 4000, // How long each slide will show
		directionNavHide: true, // Only show on hover
		captionOpacity: 0.8, // Universal caption opacity
	});
});
</script>


<h1>Progetti</h1>

<div style="width:275px; float: left;">
	<h2><a href="?page=11&gallery=1">Commerciale</a></h2>
	<?php if($gallery==1){?>
	<a href="?page=11&gallery=1">Casale</a>
	<?php }?>
	<h2><a href="?page=11&gallery=2">Residenziale</a></h2>
	<?php if($gallery==2){?>
	<a href="?page=11&gallery=2">Casale</a>
	<?php }?>
</div>
<div id="wrapper" style="width: 620px; float: right;">
<div class="slider-wrapper theme-default">
<div class="ribbon"></div>
<div id="slider" class="nivoSlider">

<?php if ($gallery==1) {?>
	<img src="images/commerciale/casale/1.jpg" alt="" />
	<img src="images/commerciale/casale/2.jpg" alt="" />
	<img src="images/commerciale/casale/3.jpg" alt="" />
	<img src="images/commerciale/casale/4.jpg" alt="" />
	<img src="images/commerciale/casale/5.jpg" alt="" />
	<img src="images/commerciale/casale/6.jpg" alt="" />
	<img src="images/commerciale/casale/7.jpg" alt="" />
	<img src="images/commerciale/casale/8.jpg" alt="" />
	<img src="images/commerciale/casale/9.jpg" alt="" />
	<img src="images/commerciale/casale/10.jpg" alt="" />
	<img src="images/commerciale/casale/11.jpg" alt="" />
	<img src="images/commerciale/casale/12.jpg" alt="" />
	<img src="images/commerciale/casale/13.jpg" alt="" />
	<img src="images/commerciale/casale/14.jpg" alt="" />
	<img src="images/commerciale/casale/15.jpg" alt="" />
<?php }
if ($gallery==2) {
?>
	<img src="images/residenziale/artena/A.jpg" alt="" />
	<img src="images/residenziale/artena/B.jpg" alt="" />
	<img src="images/residenziale/artena/C.jpg" alt="" />
	<img src="images/residenziale/artena/D.jpg" alt="" />
	<img src="images/residenziale/artena/E.jpg" alt="" />
	<img src="images/residenziale/artena/F.jpg" alt="" />
	<img src="images/residenziale/artena/G.jpg" alt="" />
	<img src="images/residenziale/artena/H.jpg" alt="" />
	<img src="images/residenziale/artena/I.jpg" alt="" />
	<img src="images/residenziale/artena/J.jpg" alt="" />
	
<?php }?>
</div>
<div id="htmlcaption" class="nivo-html-caption">
<strong>This</strong> is an example of a <em>HTML</em> caption with <a href="#">a link</a>.
</div>
</div>

</div>


